using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Hospital_PermissionsMap : EntityTypeConfiguration<Hospital_Permissions>
    {
        public Hospital_PermissionsMap()
        {
            // Primary Key
            this.HasKey(t => t.HP_ID);

            // Properties
            this.Property(t => t.HP_ISImage_Address)
                .IsFixedLength()
                .HasMaxLength(2);

            // Table & Column Mappings
            this.ToTable("Hospital_Permissions");
            this.Property(t => t.HP_ID).HasColumnName("HP_ID");
            this.Property(t => t.node_id).HasColumnName("node_id");
            this.Property(t => t.HP_ISImage_Address).HasColumnName("HP_ISImage_Address");
        }
    }
}
